A basic Meter chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.meter.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="300">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var meter = new RGraph.Meter({
id: 'cvs',
min: 0,
max: 100,
value: 45,
options: {
greenColor: 'Gradient(green:#040)',
yellowColor: 'Gradient(#ff0:#440)',
redColor: 'Gradient(#f00:#400)',
valueText: true,
valueTextUnitsPost: ',000k',
textAccessible: false
}
}).draw();
};
</script>